/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package cafe.Model;

import cafe.DataObject.DataObject;
import java.util.List;

/**
 *
 * @author root
 */
public abstract class AbstractModel {
    public abstract List<? extends DataObject> getAll();
    public abstract DataObject getByID(String id);
    public abstract int insert(DataObject record);
    public abstract int edit(String fromRecordId, DataObject toRecord);
    public abstract int delete(String id);
}
